package com.woniuxy.house.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liangyu
 * @since 2021-03-19
 */
public interface NewhouseMapper extends BaseMapper<Newhouse> {

    //查询现在楼盘均价
    BigDecimal findAvgById(int id);
    //条件分页查询新房展示信息
    List<HouseTypeInfoDto> findByCondictions(Page page, @Param("selectHouseDto") SelectHouseDto selectHouseDto);
    //修改房屋状态
    int updateById(int id);

}
